import requests


def post_token():
    # url = 'http://127.0.0.1:8000/api-token-auth/'
    url = 'http://127.0.0.1:8000/jwt-auth//'
    data = {
        'username': 'liuqianli',
        'password': 'admin123'
    }
    res = requests.post(url=url, data=data)
    print(res.text)


if __name__ == "__main__":
    post_token()
